package cn.hackcloud.designpattern.absfactory;

public class BJFactory implements AbsFactory {

	@Override
	public Pizza createPizza(String orderType) {
		Pizza pizza = null;
		if (orderType.equals("greek")) {
			pizza = new GreekPizza();
		} else if (orderType.equals("cheese")) {
			pizza = new CheesePizza();
		}
		return pizza;
	}

}
